const {observable} = require('mobx');

// observable 观察

let setNum = observable({
    count:1,
    add(){
        this.count = this.count + 1;
    }
})

console.log(setNum.count)

setNum.add();

console.log(setNum.count)